home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Auto Destruct Objects.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  836 b   |  [TEXT/ttxt]

  1. Subject:     Re: Auto Destruct Objects
  2. Sent:        6/27/96 9:41 AM
  3. Received:    6/27/96 9:54 AM
  4. From:        Mary Boetcher, mary_boetcher@quickmail.apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mail*Link® SMTP               RE>Auto Destruct Objects
  9.  
  10. >what happens when an auto destruct
  11. >object such as FW_CString255 is a member of another class and the string
  12. >object is allocated as part of the class (i.e. FW_CString255  fText)?
  13.  
  14. The string object will be destroyed automatically when the class destructor is called.
  15.  
  16. You can also allocate and destroy the string yourself (FW_CString255* fText). In this case you must call delete in the destructor.
  17.    fText = FW_NEW(FW_CString255, ());   // create the string
  18.  
  19. Mary Boetcher
  20. ODF Person
  21.